#include<iostream>
using namespace std;

void intToStr(int num,char s[]){
	int count = 0;
	do{
		char temp = num%10 + '0';
		s[count ++] = temp;
		num = num/10;
	}while(num > 0);
	count --;
	for(int i = 0;i <= count/2;i++){
		char temp = s[i];
		s[i] = s[count - i];
		s[count -i] = temp;
	}
	s[count+1] = '\0';
}

void main(){
	int num;
	cin >> num;
	char s[20];
	intToStr(num,s);
	cout << s << endl;
	system("pause");
}